package com.leo.blog.service;

import com.leo.blog.dto.PingExecution;
import com.leo.blog.entity.Ping;
import com.leo.blog.exceptions.PingOperationException;

public interface PingService {
	/**
	 * 插入评论
	 * @param ping
	 * @return
	 */
	PingExecution addPing(String name, Ping ping) throws PingOperationException;
	
	/**
	 * 删除评论
	 * @param pingId
	 * @return
	 */
	PingExecution deletePingByPingId(String name, int pingId);
	
	/**
	 * 分页查询评论列表
	 * @param blogId
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	PingExecution getPingListByBlogId(Ping pingCondition, int pageIndex, int pageSize);
}
